package com.nexus.all.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 笔记/评论点赞数量视图表
 *
 * @ClassName: NoteLikeView
 * @Author: ZZYR
 * @Date: 2024/2/26  9:24
 * @Version 1.0.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@TableName(value = "nexus_note_like_view", autoResultMap = true)
public class NoteLikeView {

    public static final LambdaQueryWrapper<NoteLikeView> gw() {
        return new LambdaQueryWrapper<>();
    }

    /**
     * 笔记id/评论id
     */
    @TableField(value = "like_data_id")
    private Long likeDataId;


    /**
     * 笔记点赞类型 1.笔记 2.评论
     */
    @TableField(value = "note_like_type")
    private Byte noteLikeType;

    /**
     * 点赞数量统计
     */
    @TableField(value = "like_count")
    private Integer likeCount;

}
